package com.crm.api.controller.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 员工个人资料DTO
 */
@Data
public class EmployeeProfileDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工姓名
     */
    private String realName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 联系电话
     */
    @Pattern(regexp = "^$|^[0-9\\-\\+]{6,20}$", message = "电话格式不正确")
    private String phone;

    /**
     * 邮箱地址
     */
    @Email(message = "邮箱格式不正确")
    private String email;
}